<template>
    <el-dialog title="新增" visible width="35%" center
               :before-close="handleClose"
               :close-on-click-modal="false"
               :close-on-press-escape="false">
        <span slot="footer" class="dialog-footer">
                <el-button @click="handleCancel" plain>取 消</el-button>
                <el-button type="primary" @click="handleSubmit" :loading="loading.submit" plain>{{ loading.submit ? '提交中 ...' : '确 定' }}</el-button>
            </span>
    </el-dialog>
</template>

<script>
    export default {
        name: "TmpAdd",
        data() {
            return {
                curData: {},
                loading: {
                    submit: false
                }
            }
        },
        methods: {
            handleClose() {
                this.$parent.$parent.dialog.visible.add = false;
            },
            handleSubmit() {
            },
            handleCancel() {
                this.handleClose();
            }
        }
    }
</script>

<style scoped lang="less">

</style>